import axios from '@/libs/api.request'
//满赠活动列表
export const apiFullgiftactivityList = data => {
    return axios.request({
      url: '/fullgiftactivity/list',
      method: 'post',
      data
    })
  }
//保存满赠活动
export const apiFullgiftactivitySave = data => {
    return axios.request({
      url: '/fullgiftactivity/save-full-gift',
      method: 'post',
      headers: { 'Content-Type': 'application/json' },
      data
    })
  }
  //保存满赠活动
export const apiFullgiftactivityDetele = data => {
  return axios.request({
    url: '/fullgiftactivity/delete',
    method: 'post',
    data
  })
}
//详情
export const apiFullgiftactivityInfo = data => {
    return axios.request({
      url: `/fullgiftactivity/info/${data.id}`,
      method: 'post',
      data
    })
  }
//修改状态
export const apiFullgiftactivityChangeStatus = data => {
    return axios.request({
      url: '/fullgiftactivity/change-status',
      method: 'post',
      data
    })
  }

// 秒杀所有产品
export const apiMarketingactivityAllProduct= data => {
    return axios.request({
      url: '/marketingactivity/all-product',
      method: 'post',
      data
    })
  }
  // 秒杀所有产品非多规格产品
export const apiMarketingactivityAllProductNoSku= data => {
  return axios.request({
    url: '/marketingactivity/all-product-no-sku',
    method: 'post',
    data
  })
}
  //秒杀活动详情
  export const apiMarketingactivityAeckill= data => {
    return axios.request({
      url: '/marketingactivity/seckill-info',
      method: 'post',
      data
    })
  }
  //保存秒杀活动
  export const apiMarketingactivitySave= data => {
    return axios.request({
      url: '/marketingactivity/save-seckill',
      method: 'post',
      headers: { 'Content-Type': 'application/json' },
      data
    })
  }

  //获取爆款产品
  export const apiMarketingactivityGetHots= data => {
    return axios.request({
      url: '/marketingactivity/get-hots',
      method: 'get',
      headers: { 'Content-Type': 'application/json' },
      data
    })
  }
  //保存爆款产品顺序
  export const apiMarketingactivitySaveHost= data => {
    return axios.request({
      url: '/marketingactivity/save-hots',
      method: 'post',
      headers: { 'Content-Type': 'application/json' },
      data
    })
  }
  //获取新品产品
  export const apiMarketingactivityGetNewest= data => {
    return axios.request({
      url: '/marketingactivity/get-newest',
      method: 'get',
      headers: { 'Content-Type': 'application/json' },
      data
    })
  }
  //保存新品产品顺序
  export const apiMarketingactivitySaveNewest= data => {
    return axios.request({
      url: '/marketingactivity/save-newest',
      method: 'post',
      headers: { 'Content-Type': 'application/json' },
      data
    })
  }